// 科研项目立项评审---- api


// 导出立项申请
import * as proxy from '@/constants/proxy'
import request from '@/utils/request'
import { exportMethod } from '@/utils/utils'


//列表批量导出
/*export function getExportApply(data: any,fileName:any) {
    const params = {
        method: 'post',
        url: proxy.CHECC_API_CMS + '/xmzx/kyxmlxps/approvalApplication/export',
        data: data,
        fileName
    }
    return exportMethod(params)
}*/
export function getExportApply(data: any, name) {
    const params = {
        method: 'post',
        url: proxy.CHECC_API_CMS + '/xmzx/kyxmlxps/approvalApplication/export',
        data: data,
        fileName: name,
    }
    return exportMethod(params)
}


//根据id获取详情
export function getDetailById(id: any) {
    return request({
      url: proxy.CHECC_API_CMS + `/xmzx/kyxmlxps/approvalApplication/getDetailById?id=${id}`,
      method: 'post',
    })
  }
//根据id获取详情
export function getApprovalById(id: any) {
    return request({
      url: proxy.CHECC_API_CMS + `/xmzx/kyxmlxps/approvalApplication/getApprovalById?id=${id}`,
      method: 'post',
    })
  }
// 提交按钮
export function getInnovativeTalentTeamLock(data: any) {
    return request({
        url: proxy.CHECC_API_CMS + `/xmzx/kyxmlxps/approvalApplication/submit`,
        method: 'post',
        data
    })
}


// 查看专家接口
export function lookResult(params: any) {
    return request({
        url: proxy.CHECC_API_CMS + '/xmzx/kyxmlxps/zjcs/approval/preliminaryexamination/getExpertDetail',
        method: 'post',
        params,
    })
}

